package com.sailmi.oss.support;
import com.sailmi.oss.core.StoreFileRequest;

import java.util.HashMap;
import java.util.Map;

/**
 * The default implementation for the <code>FileStorageRequest</code>
 *
 * @author Yzh
 */
public class DefaultStoreFileRequest implements StoreFileRequest {

    private String originalFilename;

    private String prettyFilename;

    private String contentType;

    private String uploadedBy;

    private String buckets;

    private long size;

    private Map<String, String> attributes = new HashMap<String, String>();

    @Override
    public String getOriginalFilename() {
        return originalFilename;
    }

    public void setOriginalFilename(String originalFilename) {
        this.originalFilename = originalFilename;
    }

    @Override
    public String getPrettyFilename() {
        return prettyFilename;
    }

    public void setPrettyFilename(String prettyFilename) {
        this.prettyFilename = prettyFilename;
    }

    @Override
    public String getContentType() {
        return contentType;
    }

    public void setContentType(String contentType) {
        this.contentType = contentType;
    }

    @Override
    public String getUploadedBy() {
        return uploadedBy;
    }

    public void setUploadedBy(String uploadedBy) {
        this.uploadedBy = uploadedBy;
    }

    @Override
    public long getSize() {
        return size;
    }

    public void setSize(long size) {
        this.size = size;
    }

    @Override
    public Map<String, String> getAttributes() {
        return attributes;
    }

    public void setAttributes(Map<String, String> attributes) {
        this.attributes = attributes;
    }

	@Override
	public String getBuckets() {
		return buckets;
	}

	public void setBuckets(String buckets) {
		this.buckets = buckets;
	}

	@Override
    public String toString() {
        String sb = "DefaultStoreFileRequest{" + "originalFilename='" + originalFilename + '\'' +
                ", prettyFilename='" + prettyFilename + '\'' +
                ", contentType='" + contentType + '\'' +
                ", uploadedBy='" + uploadedBy + '\'' +
                ", size=" + size +
                ", attributes=" + attributes +
                '}';
        return sb;
    }
}
